package entry

type Uploadarticle struct {
	Describe     string `json:"describe" binding:"required"`
	Context      string `json:"context" binding:"required"`
	CategoryName string `json:"categoryname" binding:"required"`
	Articletitle string `json:"articlename" binding:"required,max=100"`
}

type Updatarticle struct {
	Describe     string `json:"describe" binding:"required"`
	ID           string `json:"id" binding:"required"`
	Context      string `json:"context" binding:"required"`
	CategoryName string `json:"categoryname" binding:"required"`
	Articletitle string `json:"articlename" binding:"required,max=100"`
}

type Comment struct {
	Username string `json:"username" binding:"required"`
	Email    string `json:"email" binding:"required"`
	Context  string `json:"context" binding:"required,max=300"`
	Imgurl   string `json:"Imgurl" binding:"required"`
}

type ADDAdmin struct {
	Role     string `json:"role" binding:"required" `
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type UPDAdmin struct {
	Role     string `json:"role" binding:"required"`
	ID       int    `json:"id" binding:"required"`
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}
